<?php
/**
 * BOSS
 * 作者：MYL
 */
namespace app\api\controller;

use think\Controller;

class Base extends Controller
{
    /**
     * 初始化操作
     */
    public function _initialize()
    {
        $user_id = 1;//session("user_id");
        if (empty($user_id) || $user_id < 0) {
            ajaxReturn(['status' => '-1', 'msg' => '您未登录，请您先登录！']);
        }
    }
}